Skip to content

Update index.js#242

Open
bonm wants to merge 1 commit into
jonkemp:masterfrom
bonm:patch-1
Open

Update index.js#242
bonm wants to merge 1 commit into
jonkemp:masterfrom
bonm:patch-1

Conversation

@bonm

@bonm bonm commented Dec 18, 2017

Copy link
Copy Markdown

Usefull fix for user parametrs
example
<!-- build:js /js/all.js?rev=1234 -->

Usefull fix for user parametrs
example
<!-- build:js /js/all.js?rev=1234 -->
@coveralls

coveralls commented Dec 18, 2017

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) to 98.16% when pulling ad578bb on bonm:patch-1 into c138487 on jonkemp:master.

@jonkemp

jonkemp commented Dec 18, 2017

Copy link
Copy Markdown
Owner

@bonm I want to make sure I fully understand. This change just removes the url parameters from the path before passing it on?

@bonm

bonm commented Dec 19, 2017

Copy link
Copy Markdown
Author

@jonkemp yes. file can't create with param at file system

...
<head>
<!-- build:js /js/all.js?rev=@@hash -->
<script type="text/javascript" 
...
<!-- endbuild -->

</head>

gulp build
...
[13:54:23] Error: ENOENT: no such file or directory, open 'D:\project\newApp\ru\js\all_m.js?rev=@@hash'
    at Error (native)
stream.js:74
      throw er; // Unhandled stream error in pipe.
      ^

@jonkemp

jonkemp commented Dec 19, 2017

Copy link
Copy Markdown
Owner

Could you add a test for this?

@jonkemp

jonkemp commented Dec 19, 2017

Copy link
Copy Markdown
Owner

Also, why would you add a parameter like that to throw it away? I think most people use something like this plugin:

https://github.com/sindresorhus/gulp-rev

@bonm

bonm commented Dec 26, 2017

Copy link
Copy Markdown
Author

@bonm

bonm commented Dec 26, 2017

Copy link
Copy Markdown
Author

@jonkemp

Could you add a test for this?

Yes, i try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants